/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2021-12-31 13:32:57
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-03-14 16:22:56
 */
import request from '@/utils/request'

// 被托管列表
export const trusteeshipedList = params => {
    return request({
        method: 'get',
        url: '/cert/certInfo/trusteeshipedList',
        params
    })
}
// 未被托管列表
export const unTrusteeshipList = params => {
    return request({
        method: 'get',
        url: '/cert/certInfo/unTrusteeshipList',
        params
    })
}


// 获取绑定服务商
export const getServices = params => {
    return request({
        method: 'get',
        url: '/cert/certInfo/getServices',
        params
    })
}
// 资质托管
export const trusteeship = data => {
    return request({
        method: 'post',
        url: '/cert/certInfo/trusteeship',
        data
    })
}

// 查询是否购买了证书托管服务
export const checkTrusteeship = params => {
    return request({
        method: 'get',
        url: '/cert/certInfo/checkTrusteeship',
        params
    })
}

// - 证书托管更换
export const certChange = params => {
    return request({
        method: 'get',
        url: '/cert/certInfo/change',
        params
    })
}
// - 证书托管解绑

export const unBinding = params => {
    return request({
        method: 'get',
        url: '/cert/certInfo/unBinding',
        params
    })
}

// 证书维护下面的数据
export const statistics = params => {
    return request({
        method: 'get',
        url: '/cert/certInfo/statistics',
        params
    })
}
